<!-- The code and license for this plugin can be found at https://github.com/javatechig/phonegap-sms-plugin -->

var SmsPlugin = function () {};

SmsPlugin.prototype.send = function (phone, message, method, successCallback, failureCallback) {    
    return cordova.exec(successCallback, failureCallback, 'SmsPlugin', "SendSMS", [phone, message, method]);
};

function onDeviceReady() {
	cordova.addConstructor(function() {
	    cordova.addPlugin("sms", new SmsPlugin());
	});
}